package com.ruoyi.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门对象 sys_dept
 *
 * @author ruoyi
 * @date 2023-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dept")
public class SysDeptDo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @TableId(value = "dept_id")
    private Long deptId;
    /**
     * 父部门id
     */
    @TableField(value = "parent_id")
    private Long parentId;
    /**
     * 祖级列表
     */
    @TableField(value = "ancestors")
    private String ancestors;
    /**
     * 部门名称
     */
    @TableField(value = "dept_name")
    private String deptName;
    /**
     * 显示顺序
     */
    @TableField(value = "order_num")
    private Integer orderNum;
    /**
     * 负责人
     */
    @TableField(value = "leader")
    private String leader;
    /**
     * 联系电话
     */
    @TableField(value = "phone")
    private String phone;
    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;
    /**
     * 部门状态（0正常 1停用）
     */
    @TableField(value = "status")
    private String status;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;

}
